<?php //echo '<pre>'; print_r($projects) ?>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/public/style.css"> 
<div class="header-title">Menus</div>
<div>
    <a href="<?php echo base_url() ?>index.php/menus/add"><span>Add</span></a>
</div>
<table class="list">
    <tr>
        <th>No</th>
        <th>Menu Name</th>
        <th>Menu Description</th>
        <th>Controller Name</th>
        <th>Action Default</th>  
        <th>Actions</th>  
    </tr>
    <?php foreach($menus as $key => $menu): ?>
    <tr>
        <td><?php echo $key+1 ?></td>
        <td><?php echo $menu->menu_name?></td>
        <td><?php echo $menu->menu_description ?></td>
        <td><?php echo $menu->controller_name ?></td>
        <td><?php echo $menu->action_type_name?> (<?php echo $menu->action_description ?>)</td>
        <td>
            <a href="<?php echo base_url() ?>index.php/menus/edit/<?php echo $menu->menu_id ?>">Edit</a>
            <a href="<?php echo base_url() ?>index.php/menus/delete/<?php echo $menu->menu_id ?>">Delete</a>
        </td>
    </tr>
    <?php endforeach; ?>
</table>